<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Sistem Informasi Akademik Mahasiswa - UNP Kediri</title>
<link href="<?php echo base_url().'css/login-box.css'?>" rel="stylesheet" type="text/css" />
<!--[if lte IE 6]>
<script type="text/javascript">
function correctPNG() // correctly handle PNG transparency in Win IE 5.5 & 6.
{
   var arVersion = navigator.appVersion.split("MSIE")
   var version = parseFloat(arVersion[1])
   if ((version >= 5.5) && (document.body.filters)) 
   {
      for(var i=0; i<document.images.length; i++)
      {
         var img = document.images[i]
         var imgName = img.src.toUpperCase()
         if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
         {
            var imgID = (img.id) ? "id='" + img.id + "' " : ""
            var imgClass = (img.className) ? "class='" + img.className + "' " : ""
            var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
            var imgStyle = "display:inline-block;" + img.style.cssText 
            if (img.align == "left") imgStyle = "float:left;" + imgStyle
            if (img.align == "right") imgStyle = "float:right;" + imgStyle
            if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
            var strNewHTML = "<span " + imgID + imgClass + imgTitle
            + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
            + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
            + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>" 
            img.outerHTML = strNewHTML
            i = i-1
         }
      }
   }    
}
window.attachEvent("onload", correctPNG);
</script>
<![endif]-->
</head>

<body>
<form method="post">
<div style="padding-top:50px">
  <div id="login-box" class="siam-bg">
    <br /><br /><br /><br /><br /><br /><br /><br /><br />

    <?php if(form_error('username')): ?>

            <?php $error_message = form_error('username','<span>','</span>'); ?>

    <?php elseif(form_error('password')):?>

            <?php $error_message = form_error('password','<span>','</span>'); ?>

    <?php else:?>

            <?php $error_message = form_error('chk_pwd','<span>','</span>'); ?>

    <?php endif; ?>

    <?php if($error_message): ?>
             <div class="login-box-notification"><font color="yellow"><?php echo $error_message ?></font></div>
    <?php endif; ?>
    <div id="login-box-name" style="margin-top:10px;">Username:</div>
    <div id="login-box-field" style="margin-top:10px;"><input name="username" class="form-login blue-bg-input" title="Username" value="<?php echo set_value('username') ?>" size="30" maxlength="2048" /></div>
    <div id="login-box-name">Password:</div><div id="login-box-field"><input name="password" type="password" class="form-login blue-bg-input" title="Password" value="<?php echo set_value('password') ?>" size="30" maxlength="2048" /></div>
    <br />
    <input id="loginBtnBlue" type="submit" value="" name="login" />
  </div>
  <div id="info-box"></div>
</div>
</form>
</body>
</html>
